package com.example.interview.service;

import com.example.interview.domain.Commodity;
import com.example.interview.mapper.CommodityMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CommodityService {
    @Resource
    CommodityMapper mapper;

    public Commodity queryCommodityById(long goodsId) {
        return mapper.queryCommodityById(goodsId);
    }
}
